package cc.linker.steplink.crm.merchanth5.pojo;

import cc.linker.steplink.crm.commons.utils.NumberUtils;

import java.io.Serializable;
import java.text.DecimalFormat;

public class MallGoodsSkuPo implements Serializable {

    private String goodsCode;//	商品编码
    private Integer goodsCount;//	库存数量
    private String moneyAmount;//	价格
    private Long moneyAmountCent;//	价格
    private Long skuId;//	库存ID
    private String skuKey;//	库存组合
    private String skuValue;//库存值
    private Long originalCostCent;//	原价
    private String originalCost;//	原价
    private Long memberAmountCent;//会员价（分）
    private String memberAmount;//会员价（元）
    private Long mallsSkuId;//供货商skuId
    private Long mallsAmount;//供货商skuId


    public Long getMallsSkuId() {
        return mallsSkuId;
    }

    public void setMallsSkuId(Long mallsSkuId) {
        this.mallsSkuId = mallsSkuId;
    }

    public Long getMallsAmount() {
        return mallsAmount;
    }

    public void setMallsAmount(Long mallsAmount) {
        this.mallsAmount = mallsAmount;
    }


    public Long getMemberAmountCent() {
        return memberAmountCent;
    }

    public void setMemberAmountCent(Long memberAmountCent) {
        this.memberAmountCent = memberAmountCent;
        this.memberAmount = NumberUtils.fenToYuan(memberAmountCent);
    }

    public String getMemberAmount() {
        return memberAmount;
    }

    public void setMemberAmount(String memberAmount) {
        this.memberAmount = memberAmount;
    }

    public Long getOriginalCostCent() {
        return originalCostCent;
    }

    public void setOriginalCostCent(Long originalCostCent) {
        this.originalCost = NumberUtils.fenToYuan(originalCostCent);
        this.originalCostCent = originalCostCent;
    }

    public String getOriginalCost() {
        return originalCost;
    }

    public void setOriginalCost(String originalCost) {
        this.originalCost = originalCost;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public void setGoodsCount(Integer goodsCount) {
        this.goodsCount = goodsCount;
    }

    public void setMoneyAmount(String moneyAmount) {
        this.moneyAmount = moneyAmount;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public void setSkuKey(String skuKey) {
        this.skuKey = skuKey;
    }

    public void setSkuValue(String skuValue) {
        this.skuValue = skuValue;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public Integer getGoodsCount() {
        return goodsCount;
    }

    public String getMoneyAmount() {
        return moneyAmount;
    }

    public Long getSkuId() {
        return skuId;
    }

    public String getSkuKey() {
        return skuKey;
    }

    public String getSkuValue() {
        return skuValue;
    }

    public Long getMoneyAmountCent() {
        return moneyAmountCent;
    }

    public void setMoneyAmountCent(Long moneyAmountCent) {
//        DecimalFormat df = new DecimalFormat("#.00");
//        //分转元
//        double s = ((double) moneyAmountCent/100);
//        this.moneyAmount = Double.valueOf(df.format(s));
        this.moneyAmount = NumberUtils.fenToYuan(moneyAmountCent);
        this.moneyAmountCent = moneyAmountCent;
    }
}
